﻿<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{s:media.title}_视频播放</title>
<link href="css/bf.css" rel="stylesheet" type="text/css" />
<link href="css/page.css" rel="stylesheet" type="text/css" />
<link href="css/fasteditor.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="js/swfobject.js"></script>

</head>
<body>

 <script  type="text/javascript">  
//var domain = "http://yijie.com";
var domain = "http://www.jx88.cn:5000";
//var domain = "http://127.0.0.1:1005";
//var domain = "http://192.168.1.111";

 </script>
<div class="top">
  	<div class="top_huanyingbg">
    <div class="top_huanying">您好！<a href="#" id="us"></a>欢迎光临江西医界网！</div>
    <div class="top_shoucangwe">收&nbsp;藏&nbsp;我&nbsp;们</div>
    <div class="top_tuijian">推&nbsp;荐&nbsp;好&nbsp;友</div>
  </div>
  <div class="top_gg"><img src="images/topgg.gif" width="995" height="60" /></div>
  <div class="top_hangyegj">
    <div class="top_logo"><img src="images/logo.jpg" /></div>
    <div class="top_wenziwaigj">
      <div class="top_wenzibg"><img src="images/zixun.jpg" /></div>
      
      <div class="top_zixun">
		      <ul>
		          <li><a class="black" href="http://www.jx88.cn/new-information.html">行业资讯</a></li>
		          <li><a class="red" href="http://www.jx88.cn/new-exposure.html?cate_id=23">医疗曝光</a></li>
		          <li><a class="black" href="http://www.jx88.cn/new-help.html?cate_id=25">寻医问药</a></li>
		        </ul>
		        <ul>
		          <li><a class="black" href="http://www.jx88.cn/new-manage.html?cate_id=24">医院管理</a></li>
		          <li><a class="black" href="http://www.jx88.cn/bbs.html">百姓论坛</a></li>
		          <li><a class="black" href="http://www.jx88.cn/new-media-list.html?cate_id=27">在线视频</a></li>
		     
		        </ul>
	      </div>
	      <div class="top_wenzibg"><img src="http://img.jx88.cn/images/default/yiyuan.jpg"></div>
	      <div class="top_yiyuan">
		        <ul>
		          <li><a class="black" href="http://www.jx88.cn/hospital-nation.html?type_id=0">公立医院</a></li>
		          <li><a class="black" href="http://www.jx88.cn/hospital-nation.html?type_id=1">民营医院</a></li>
		        </ul>
	      </div>
	      <div class="top_wenzibg"><img src="http://img.jx88.cn/images/default/pindao.jpg"></div>
	      <div class="top_pindao">
		       		        <ul>
		          <li><a class="black" href="http://www.jx88.cn/channel-tv.html?cate_id=17">妇科</a></li>
		          <li><a class="black" href="http://www.jx88.cn/channel-tv.html?cate_id=19">男科</a></li>
		          <li><a class="black" href="http://www.jx88.cn/channel-tv.html?cate_id=5">皮肤科</a></li>
		          <li><a class="black" href="http://www.jx88.cn/channel-tv.html?cate_id=8">耳鼻科</a></li>
		          <li><a class="black" href="http://www.jx88.cn/channel-tv.html?cate_id=11">不孕不育</a></li>
		        </ul>
		        <ul>
		          <li><a class="black" href="http://www.jx88.cn/channel-tv.html?cate_id=18">口腔</a></li>
		          <li><a class="black" href="http://www.jx88.cn/channel-tv.html?cate_id=9">肝病</a></li>
		          <li><a class="black" href="http://www.jx88.cn/channel-tv.html?cate_id=10">骨伤科</a></li>
		          <li><a class="black" href="http://www.jx88.cn/channel-tv.html?cate_id=21">整形科</a></li>
		        </ul>
	      </div>
      
    </div>
    <div class="top-right">
    	<input type="image" class="top-sc" src="images/sc.jpg"  />
        <input type="image" class="top-zp" src="images/zp.jpg"  />
    </div>
  </div>
</div>
<div class="zbody">
  <div class="main-left">
   	<div class="left-site">您当前所在位置：江西医界网>在线视频>正文</div>
  <span class="left-tit">{s:media.title}</span>
        <div class="left-flash">
            <p style="float:left"  id="player1" style="width:550px;"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
	        <script type="text/javascript">getFlv('http://www.jx88.cn:5001{s:media.m_url}',"550","430","550","430","flash/fm1.jpg","player1");
		function getvideopath()
		{
 			return 'http://www.jx88.cn:5001{s:media.m_url}';
		}
		getvideopath();

	</script>   
        </div>
        <div class="left-fx">
        	<input class="left-dc" type="image" src="images/ding.jpg"  /><p>22</p>
            <input class="left-dc" type="image" src="images/cai.jpg"  /><p>9</p>
            <span>分享到</span>
            <ul>
            	<li><input type="image" src="images/1.jpg" /> </li>
                <li><input type="image" src="images/2.jpg" /> </li>
                <li><input type="image" src="images/3.jpg" /> </li>
                <li><input type="image" src="images/4.jpg" /> </li>
                <li><input type="image" src="images/5.jpg" /> </li>
                <li><input type="image" src="images/6.jpg" /> </li>
                <li><input type="image" src="images/7.jpg" /> </li>
            </ul>
        </div>
		
		<span id="types" style="display:none">0</span>
        <div class="left-reply">
        	<p class="rp-p">发表短评</p>      
        	
			<textarea id="rep" class="reply-input"></textarea>
        		
            	<input class="reply-fb" type="image" onclick="discuss()" src="images/fb.jpg"  />
          
        </div>
        
 <script  type="text/javascript">  
	$(function(){
		var mid={s:media.m_id};
		var s=document.createElement("script");
		s.src="http://www.jx88.cn/new-media-pages?mid="+mid;
		document.body.appendChild(s);		
	});	

	function pageback(e){//第一次进来时分页，调数据
	
	
		if(e.user!=null){
			$("#types").text('1');
			$("#us").after('<a href="javascript:;" id="ou" onclick="loginout('+e.user['user_id']+')" >&nbsp;&nbsp;退出</a>');
			$("#us").html(e.user['user_name']);
		}
		if(e.page!=null){
			if(e.list!=null){
			var s='';
				$.each(e.list,function(){
					s+='<li class="rp-li"><div class="rp-tx" ><img  src="images/tx.jpg" width="50" height="50" /></div><div class="rp-mz"><p class="rp-mz1">'+this['user_name']+'</p><p class="rp-sj">'+this['pubdate']+'</p></div><p class="rp-nr">'+this['contexts']+'</p><a href="javascript:;" onclick="sh('+this['id']+')" >回复</a></li><li class="rp-li" style="display:none;" id="s'+this['id']+'"></li>';			
					
				});
				$(".rp-ul").html(s);
			}
			$("#my-pagination").html(e.page);
		}else{
			alert('b');
		}
		
	}

	function ppageback(e){//分页时反回

		if(e.page!=null){
			if(e.list!=null){
				var s='';
				$.each(e.list,function(){
					s+='<li class="rp-li"><div class="rp-tx"><img src="images/tx.jpg"/></div><div class="rp-mz"><p class="rp-mz1">'+this['user_name']+'</p><p class="rp-sj">'+this['pubdate']+'</p></div><p class="rp-nr">'+this['contexts']+'</p><a href="javascript:;" onclick="sh('+this['id']+')" >回复</a></li><li class="rp-li" style="display:none;" id="s'+this['id']+'"></li>';	
				});
				$(".rp-ul").html(s);
			}
			$("#my-pagination").html(e.page);
		}else{
			alert('b');
		}
	}
	
	function page(d,pages){//分页

		if(pages!=0){
			var vals=pages;
		}
		else {
			var vals=$(d).text();
		}
		
		var mid={s:media.m_id};
		s="<img src='images/loading2.gif'>";
		$(".rp-ul").html(s);

	
		var ds=document.createElement("script");
		var box = document.createElement("div");
		ds.src=domain + "/?namespace=new&controller=media&action=page&mid="+mid+"&page="+vals;
		if(ds.addEventListener){
			document.body.appendChild(ds);
		}else{
			box.appendChild(ds);	
		}
	};
	

	function discuss(){//评论
					if($("#types").text()=='0'){
						$("#login").show();
						positionval ();
						return false;
					
					}
					
	//$(".pt").html(s);
	var mid={s:media.m_id};
	var contexts=$("#rep").val();
	if(contexts==''){alert('内容不能为空');return false;}
	if(contexts.length>=500){alert('内容长度不能大于500');return false;}
		var s="<img src='images/loading2.gif'>";
		$(".rp-ul").html(s);
		var s=document.createElement("script");
		s.src=domain + "/?namespace=new&controller=media&action=discuss&mid="+mid+"&contexts="+contexts;
		document.body.appendChild(s);
	}
	
	function callback(e){//评论返回
		if(e.list!=null){
		
			alert('评论成功');
			$("#rep").val('');
			var s='';
				$.each(e.list,function(){
					s+='<li class="rp-li"><div class="rp-tx" ><img  src="images/tx.jpg" width="50" height="50" /></div><div class="rp-mz"><p class="rp-mz1">'+this['user_name']+'</p><p class="rp-sj">'+this['pubdate']+'</p></div><p class="rp-nr">'+this['contexts']+'</p><a href="javascript:;" onclick="sh('+this['id']+')" >回复</a></li><li class="rp-li" style="display:none;" id="s'+this['id']+'"></li>';			
					
				});
				
				$(".rp-ul").html(s);
		}else{
		   alert('评论失败');
		   $(".rp-ul").html('');
		}
	}    
	function replyback(e){//回复返回
		if(e.list!=null){
		
			alert('回复成功');
			$("#rep").val('');

		}else{
			alert('回复失败');
		}

	}
	function reply(id){//回复
	//$("#re"+id).html("<img src='../../images/new/loading2.gif'>");
		var contexts=$("#r"+id).val();
		if(contexts==''){alert('内容不能为空');return false;}
		if(contexts.length>=500){alert('内容长度不能大于500');return false;}
		//var user_name="aa";			
		var s=document.createElement("script");
		s.src=domain + "/?namespace=new&controller=media&action=gore&r_id="+id+"&contexts="+contexts;
		document.body.appendChild(s);
	}
	
function sh(id){//点击回复调用回复列表
					if($("#types").text()=='0'){
						
						$("#login").show();
						positionval ();
						return false;
					
					}
			//$('#s'+id).show().html("<img src='images/loading2.gif'");
			var s=document.createElement("script");
			var boxsh=document.createElement("div");
			s.src=domain + "/?namespace=new&controller=media&action=rpage&id="+id;
			if(s.addEventListener){
				document.body.appendChild(s);
			}else{
				boxsh.appendChild(s);
			}

			///$('#s'+id).show().html(s);
}
function back(e){//
	
			var s='';
			s+='<textarea id="r'+e.id+'" class="reply-input"></textarea><div style="clear:right;margin:5px 20px 5px 0px;padding-top:5px;"><input  type="image" onclick="reply('+e.id+')" src="images/fb.jpg"  /><a  href="javascript:;" onclick="hd('+e.id+')">取消</a>';

			if(e.list!=null){
				s+='<div><ul style="margin-left:100px;">';
				$.each(e.list,function(){
				s+='<li><div class="rp-tx" style="margin-bottom:5px;clear:left"><img src="images/tx.jpg" width="50" height="50" /></div><div class="rp-mzx"><p class="rp-mz1">cxcx:</p><p class="rp-sj">'+this['pubdate']+'</p></div><p class="rp-nrx">'+this['contexts']+'</p></li>';
			});
			s+='</ul></div>';
			}
			
			s+='</div>';
			
			$('#s'+e.id).show().html(s);
}
function replyback(e){//回复回调
			var s='';
			s+='<textarea id="r'+e.list[0]['r_id']+'" class="reply-input"></textarea><div style="clear:right;margin:5px 20px 5px 0px;padding-top:5px;"><input  type="image" onclick="reply('+e.list[0]['r_id']+')" src="images/fb.jpg"  /><a  href="javascript:;" onclick="hd('+e.list[0]['r_id']+')">取消</a>';

			if(e.list!=null){
				s+='<div><ul style="margin-left:100px;">';
				$.each(e.list,function(){
				s+='<li><div class="rp-tx" style="margin-bottom:5px;clear:left"><img src="images/tx.jpg" width="50" height="50" /></div><div class="rp-mzx"><p class="rp-mz1">'+this['user_name']+'回复:</p><p class="rp-sj">'+this['pubdate']+'</p></div><p class="rp-nrx">'+this['contexts']+'</p></li>';
			});
			s+='</ul></div>';
			}
			
			s+='</div>';
			$('#s'+e.list[0]['r_id']).html(s);
}
function hd(id){
$('#s'+id).hide();
}
	function loginout(id){
			var s=document.createElement("script");
			var boxsh = document.createElement("div");
			s.src=domain + "/?namespace=new&controller=media&action=loginout&id="+id;
			if(s.addEventListener){
				document.body.appendChild(s);
			}else{
				
			}	
	}
	function outback(e){
		if(e.error==0){
			
			$("#us").html('');
			
			$("#types").text('0');
			$("#ou").html('');
			$("#ou").remove();
			alert(e.msg);
		}else{
		alert(e.msg);
		}
		
		
		}
		
</script>
        <div class="rp-sbk">最新评论</div>
        <ul class="rp-ul">
			
			
      		
    	</ul>
    	<div class="rp-fy" >
			<div id="my-pagination">
			</div>
		
		</div>
  	</div>
<div class="main-right">
    	<div class="rt-banner"><img src="images/ban.jpg" width="350" height="90" /></div>
        <div class="rt-tj">
        	<div class="tj-nav">
           	  <span class="nav-span">推荐视频</span>
              <div class="nav-y">
            </div>
         </div>
        <ul class="rt-ul">
        	{c:foreach item="itor" from="tui" num="8"}
            <li>
            	<div><a href="/play?m_id={itor.m_id}"><img src="{itor.image|default:'/vedio/images/0.jpg'}" width="147" height="110" /></a></div>
                <p><a href="/play?m_id={itor.m_id}">{itor.title|default:"没有标题"}</a></p>
            </li>
			{/c:foreach}
         </ul>
        </div>
        <div class="rt-gg1"><img src="images/sd.jpg" width="350" height="117" /></div>   
  </div>
	<p class="clear"></p>
</div>
<div class="foot">
  <div class="foot_zwenzi1">
     <ul>
      <li><a href="http://www.jx88.cn/myserver-company-provision.html" target="_blank">法律声明</a></li>
      <li>|</li>
      <li><a href="http://www.jx88.cn/myserver-company-aboutus.html" target="_blank">关于我们</a></li>
      <li>|</li>
      <li><a href="http://www.jx88.cn/myserver-company-contactus.html" target="_blank">联系我们</a></li>
      <li>|</li>
      <li><a href="http://www.jx88.cn/myserver-company-hr.html" target="_blank">诚聘英才</a></li>
      <li>|</li>
      <li><a href="http://www.jx88.cn/myserver-company-business.html" target="_blank">广告招商</a></li>
      <li>|</li>
      <li><a href="http://www.jx88.cn/myserver-company-leavemsg.html" target="_blank">客户留言</a></li>
      <li>|</li>
      <li><a onclick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.tex68.com');" href="javascript:void(0);">设为首页</a></li>
      <li>|</li>
      <li><a class="word_white" onclick="AddFavorite(document.location.href,document.title)" href="javascript:void(0);">加人收藏</a></li>
    </ul>
  </div>
  <div class="foot_zwenzi2">
    <ul>
      <li>互联网药品信息服务许可证：(赣)-非经营性-2008-0001</li>
      <li>特别声明：本站信息仅供参考，不对根据网站信息作出的任何交易或投资决策负责或承担任何责任。</li>
    </ul>
  </div>
  <div class="foot_zwenzi3">
    <ul>
      <li>版权所有</li>
      <li>2010-2012</li>
      <li>@</li>
      <li><a href="#">www.jx88.com</a></li>
      <li>江西医界网</li>
      <li>赣ICP备008005960号</li>
    </ul>
  </div>
</div>
	<div id="login" style="font-size:12px;border:10px solid #D9D5D5;width:320px;height:200px;position: absolute;z-index:999;display:none">
	<div style="width:320px;border:1px solid #BBBBBB;height:200px;background-color:#fff">
		<div style="height: 25px;line-height:25px;width:100%;border-bottom:1px solid #E6E6E6;background-color:#FFF7E6">
			<b style="position: absolute;;color: red">&nbsp;请先登录，再继续操作</b>
			<span style="float:right;margin-top:3px;margin-right:10px;"><a href="javascript:void(0)" onclick="$('#login').hide()"><!--<img src="images/dels.png" alt="" />-->del</a></span>
		</div>
		<div style="text-align: center">
	
			<table style="width: 90%;margin:10px;font-size:12px;">
				<tr style="margin:10px;">
					<td>用户名：</td>
					<td><input type="text" name="user_name"  id="user_name" style="width: 130px;" /></td>
					<td id="com"></td>
				</tr>
				<tr style="height: 10px;">
				</tr>
				
				<tr style="margin:10px;">
					<td>密　码：</td>
					<td id="pw"><input type="password" name="password" id="password" style="width: 130px;"  /></td>
					<td></td>
				</tr>
				<tr style="height: 10px;">
				</tr>
				
				<tr style="margin:10px;">
					<td>验证码：</td>
					<td><input type="text" onkeyup="this.value=this.value.toUpperCase()" name="imgcode" id='imgcode' style="width: 100px;"  /></td>
					<td>
					<script type="text/javascript">

						document.write('<img id="imgcodeclick" onclick="getimage()" border="0" src="' +
							'http://www.jx88.cn/new-media-getimg.html"/>');

					</script>					
					</td>
				</tr>
				<tr style="height: 10px;">
				</tr>

				<tr style="height: 10px;">
				<td colspan=3><span id="error" style="color: red"></span></td>
				</tr>
				<tr style="margin:10px;">
				<td></td>
					<td><a onclick="login()" href="javascript:void(0)">login<!--<img style="position: absolute;margin-left:-60px;margin-top:-6px;" src="images/login.png" alt="" />--></a></td>
				<td></td>
				</tr>
			</table>
			
		</div>
	</div>
</div>

<script type="text/javascript">

	 function login(){
			var user_name=$("#user_name").val();
			var password=$("#password").val();
			var imgcode=$("#imgcode").val();
			var date='&user_name='+user_name+'&password='+password+'&imgcode='+imgcode;
			if(user_name==''||password==''){
				$("#error").html("用户名密码不能为空");
				return false;
			}
			if(imgcode==''){
				
				$("#error").html("验证码不能为空");
				return false;
			}
			var s=document.createElement("script");
			var boxsh = document.createElement("div");
			s.src=domain + "/?namespace=new&controller=media&action=login"+date;
			alert(s.src);
			if(s.addEventListener){
				document.body.appendChild(s);
			}else{
				boxsh.appendChild(s);
			}
	}
	    function getimage(){

	    	document.getElementById("imgcodeclick").src= domain + '/?namespace=new&controller=media&action=getimg'+'&'+Math.random().toString();

	    }
	
	function loginback(e){
		if(e.error==0){
			$("#types").text('1');
			$("#us").after('<a href="javascript:;" id="ou" onclick="loginout('+e.user['user_id']+')" >&nbsp;&nbsp;退出</a>');

			$("#us").html(e.user['user_name']);
			$("#login").hide();
			alert('登录成功');
		}
		else{
		alert(e.msg);
		}
}



var loginobj = document.getElementById("login");
function positionval1 (){
	var loginobj = document.getElementById("face");
	var t=(TINY.page.height()/2)-(loginobj.offsetHeight/2); t=t<10?10:t;
	loginobj.style.top=(t+TINY.page.top())+'px';
	loginobj.style.left=(TINY.page.width()/2)-(loginobj.offsetWidth/2)+'px';
}

function positionval(){
	//var t=(TINY.page.height()/2)-(loginobj.offsetHeight/2); t=t<10?10:t;
	//loginobj.style.top=(t+TINY.page.top())+'px';
	//loginobj.style.left=(TINY.page.width()/2)-(loginobj.offsetWidth/2)+'px';
	loginobj.style.top = (document.body.scrollTop)+(document.body.clientHeight/2)-100+"px";
	loginobj.style.left = (document.body.scrollLeft)+(document.body.offsetWidth/2)+166+"px";
}
var TINY = {};
TINY.page=function(){
	return{
		top:function(){return document.body.scrollTop||document.documentElement.scrollTop},
		width:function(){return self.innerWidth||document.documentElement.clientWidth||document.clientWidth},
		height:function(){return self.innerHeight||document.documentElement.clientHeight},
		theight:function(){
			var d=document, b=d.body, e=d.documentElement;
			return Math.max(Math.max(b.scrollHeight,e.scrollHeight),Math.max(b.clientHeight,e.clientHeight))/10;
		},
		twidth:function(){
			var d=document, b=d.body, e=d.documentElement;
			return Math.max(Math.max(b.scrollWidth,e.scrollWidth),Math.max(b.clientWidth,e.clientWidth))/10;
		}
	}
}();
</script>

<!-- jx88.cn Baidu tongji analytics -->
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fc33c810bd737b40c111677ebdf893d0a' type='text/javascript'%3E%3C/script%3E"));
</script>
</body>
</html>
